import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'


export default defineConfig({
  main: {
    plugins: [
      externalizeDepsPlugin(),
    ],
    build: {
      rollupOptions: {
        input: {
          index: resolve(__dirname, 'src/main/index.js'),
          process_csv: resolve(__dirname, 'src/main/process_csv.js'),
          test_process: resolve(__dirname, 'src/main/test_process.js'),
          test: resolve(__dirname, 'src/main/test.js'),
        }
      }
    }
  },
  preload: {
    plugins: [externalizeDepsPlugin()]
  },
  renderer: {
    resolve: {
      alias: {
        '@renderer': resolve('src/renderer/src'),

      }
    },
    plugins: [vue()]
  }
})
